package com.cheng.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@Controller
@RequestMapping
public class BootController {
    @ResponseBody
    @RequestMapping("/request")
    public String request(){
        return "city web";
    }

    //测试thymeleaf
    @RequestMapping("/welcome")
    public String welcome(Map<String,Object> map){
        map.put("welcome","welcome");
        return "result";
    }
}